package domain;

/**
 *
 * @author shaigi
 */
public class Flag {
    
    private Square      _square;
    private boolean     _taken;
    private int         _value;

    public Flag(Square square, int value) {
        this._square    = square;
        this._taken     = false;
        this._value     = value;
    }

    public int getValue() {
        return _value;
    }

    public boolean isTaken() {
        return _taken;
    }

    public void setTaken(boolean taken) {
        this._taken = taken;
    }

    public Square getSquare() {
        return _square;
    }
    public boolean equals(Flag other){
        return this._square.equals(other.getSquare());
    }
    
}
